package com.bkitmobile.kesu.android.ClassInfo;

import java.io.Serializable;

public class FriendShortInfo implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String id;
	private String status;
	private boolean state;
	//nguoi do co them view minh
	private boolean isCanSee24h = false;
	private boolean isCanViewInvi = false;
	private boolean isWaitingAdd = false;
	private String sTime;
	private String time;
	private double longitude;
	private double latitude;
	private double sLongitude;
	private double sLatitude;
	private String img;
	public FriendShortInfo(String id) {
		this.setId(id);
		this.setStatus("offline");
		setState(false);
		//TODO: get data from res.values
	}
	public FriendShortInfo(String id, String status){
		this.setId(id);
		this.setStatus(status);
		setState(true);
	}
	public FriendShortInfo(String id, String status, boolean state,String img){
		this.setId(id);
		this.setStatus(status);
		this.setState(state);
		this.setImg(img);
	}
	public FriendShortInfo(String id, boolean state) {
		this.setId(id);
		this.setStatus("online");
		this.setState(state);
	}
	public FriendShortInfo(String id, String status, String state) {
		this.setId(id);
		this.setStatus(status);
		this.setState(state.startsWith("off")?false:true);
	}
	public FriendShortInfo(String id, String status, boolean state,double longitude,
			double latitude,String time,double sLongitude,double sLatitude,String sTime)
	{
		this.id = id;
		this.status = status;
		this.state = state;
		this.longitude = longitude;
		this.latitude = latitude;
		this.time = time;
		this.sLongitude = sLongitude;
		this.sLatitude = sLatitude;
		this.sTime = sTime;
		this.setWaitingAdd(false);
	}
	public FriendShortInfo(String id, String status, boolean state,double longitude,
			double latitude,String time,double sLongitude,double sLatitude,String sTime, boolean isWaitingAdd)
	{
		this.id = id;
		this.status = status;
		this.state = state;
		this.longitude = longitude;
		this.latitude = latitude;
		this.time = time;
		this.sLongitude = sLongitude;
		this.sLatitude = sLatitude;
		this.sTime = sTime;
		this.setWaitingAdd(isWaitingAdd);
	}
	public void setsTime(String sTime) {
		this.sTime = sTime;
	}
	public String getsTime() {
		return sTime;
	}
	public void setTime(String time) {
		this.time = time;
	}
	public String getTime() {
		return time;
	}
	public void setLatitude(double latitude) {
		this.latitude = latitude;
	}
	public double getLatitude() {
		return latitude;
	}
	public void setLongitude(double longitude) {
		this.longitude = longitude;
	}
	public double getLongitude() {
		return longitude;
	}
	public void setsLatitude(double sLatitude) {
		this.sLatitude = sLatitude;
	}
	public double getsLatitude() {
		return sLatitude;
	}
	public void setsLongitude(double sLongitude) {
		this.sLongitude = sLongitude;
	}
	public double getsLongitude() {
		return sLongitude;
	}
	public void setState(boolean state) {
		this.state = state;
	}
	public boolean isState() {
		return state;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getId() {
		return id;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getStatus() {
		return status;
	}
	public void setCanSee24h(boolean isCanSee24h) {
		this.isCanSee24h = isCanSee24h;
	}
	public boolean isCanSee24h() {
		return isCanSee24h;
	}
	public void setCanViewInvi(boolean isCanViewInvi) {
		this.isCanViewInvi = isCanViewInvi;
	}
	public boolean isCanViewInvi() {
		return isCanViewInvi;
	}
	public void setWaitingAdd(boolean isWaitingAdd) {
		this.isWaitingAdd = isWaitingAdd;
	}
	public boolean isWaitingAdd() {
		return isWaitingAdd;
	}
	public void setImg(String img) {
		this.img = img;
	}
	public String getImg() {
		return img;
	}
}